import request from "@/request";

export async function listQuestionBankVOByPageUsingPost(body) {
    return request({
        method: 'POST',
        url: '/api/questionBank/list/page/vo',
        data: body
    })
}

export async function getQuestionBankVOByIdUsingGet(bankId){
    return request({
        method: 'GET',
        url: '/api/questionBank/get',
        params:{
            id: bankId
        }
    })
}

export async function listQuestionBankByPageUsingPost(body){
    return request({
        method: 'POST',
        url: '/api/questionBank/list/page',
        data: body
    })
}

export async function listQuestionBankUsingPost(body){
    return request({
        method: 'POST',
        url: '/api/questionBank/list',
        data: body
    })
}

export async function deleteQuestionBankUsingPost(body){
    return request({
        method: 'POST',
        url: '/api/questionBank/delete',
        data: body
    })
}

export async function deleteBatchQuestionBankUsingPost(body){
    return request({
        method: 'POST',
        url: '/api/questionBank/delete/batch',
        data: body
    })
}

export async function updateQuestionBankUsingPost(body){
    return request({
        method: 'POST',
        url: '/api/questionBank/update',
        data: body
    })
}

export async function addQuestionBankUsingPost(body) {
    return request({
        method: "POST",
        url: "/api/questionBank/add",
        data: body
    })
}

export async function listQuestionBankVOByRecommend(body){
    return request({
        method: 'POST',
        url: '/api/questionBank/list/vo/recommend',
        data: body
    })
}